home *** CD-ROM | disk | FTP | other *** search
- Path: winternet.com!news
- From: apang@winternet.com (Anthony Pang)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: alloca() on Amiga?
- Date: 5 Apr 1996 00:09:50 GMT
- Organization: Winternet Corporation, Mpls, MN
- Message-ID: <4k1oce$lub@blackice.winternet.com>
- References: <2720tdg60.alamito@marketgraph.xs4all.nl>
- NNTP-Posting-Host: athens.imaginary.com
- Keywords: alloca
-
- In article <2720tdg60.alamito@marketgraph.xs4all.nl>,
- Ruud van Gaal <rvg@marketgraph.xs4all.nl> wrote:
- >Is there a nice way to get a working alloca() function for the Amiga?
- >It is present on all PC and Unix C implementations, but not on the Amiga.
- >(it allocates mem from the stack, automatically freeing it upon return from
- >subroutine).
-
- GCC and SAS have alloca(). I think DICE has it too.
-
- Aztec C doesn't, but there's a package or two floating around
- on Aminet would provides alloca() (among other things) -- search for RConfig.
-
- There's also a GNU alloca.c file (found somewhere in one of the GNU packages)
- that claims to be platform independent. I've used it on occassion -- the only
- caveat is if your program is compiled with dynamic stack extension, then
- blocks may not be freed immediately upon function exit.
-